package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String str = "asd2132dac213sa";
        String[] a = str.split("[0-9]+");
        System.out.println(a.length);
        System.out.println(Arrays.toString(a));

        str = ",a,s,d,f,g,s,,,,,,,,,,,,,,,,,,,,,,,,,";
        a = str.split(",");
        System.out.println(a.length);
        System.out.println(Arrays.toString(a));

    }
}
